package org.fastsyncer.manager.listener.mysql.common.util;

import java.net.Socket;

import org.fastsyncer.manager.listener.mysql.io.XInputStream;
import org.fastsyncer.manager.listener.mysql.io.XOutputStream;

public final class IOUtils {

	public static void closeQuietly(Socket socket) {
		try {
			socket.close();
		} catch(Exception e) {
			// NOP
		}
	}

	public static void closeQuietly(XInputStream is) {
		try {
			is.close();
		} catch(Exception e) {
			// NOP
		}
	}

	public static void closeQuietly(XOutputStream os) {
		try {
			os.close();
		} catch(Exception e) {
			// NOP
		}
	}
}
